var { ocrUtils, clickUtils, gUtils } = require("../../utils/index");
var pointMap = require("./pointMap");
function main() {
  var text$ = "立即领取";
  var TextOCR = ocrUtils.captureExistsOneText([text$]);
  var index = 0;
  while (TextOCR) {
    if (index >= 25) {
      return;
    }
    index++;
    clickUtils.clickTextOCR(TextOCR);
    gUtils.sleep(3, 8);
    clickUtils.clickPointMap(pointMap.立即领取.关闭, 10, 10);
    gUtils.sleep(3, 8);
    TextOCR = ocrUtils.captureExistsOneText([text$]);
  }
}
module.exports = main;
